package com.miao.pojo;


import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * 全局配置类，存放核心配置文件解析出来的内容
 *
 * @author 喵瑞恒
 * @date 2023/09/13 20:30
 **/
public class Configuration {

    //数据源对象
    private DataSource dataSource;


    //key: statementId:namespace.id
    private Map<String, MappedStatement> mappedStatementMap = new HashMap();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }
}
